package com.zjc.yohoshop.mvp.model;

import com.zjc.lib_core.http.MResponseManager;
import com.zjc.lib_core.mvp.model.BaseModel;
import com.zjc.yohoshop.bean.BrandGoodsEntity;
import com.zjc.yohoshop.bean.GoodsListEntity;
import com.zjc.yohoshop.bean.ShopGoodsEntity;
import com.zjc.yohoshop.mvp.contract.ShopDetailsFragmentContract;
import com.zjc.yohoshop.network.API;

import javax.inject.Inject;

import io.reactivex.Observable;

public class ShopDetailsFragmentModel extends BaseModel implements ShopDetailsFragmentContract.ShopDetailsFragmentIModel {

    @Inject
    public ShopDetailsFragmentModel() {}

    @Override
    public Observable<GoodsListEntity> goods_list(String request) {
        return MResponseManager.obtainRetrofit(API.class).goods_list_request(request);
    }

    @Override
    public Observable<ShopGoodsEntity> shop_goods(String request) {
        return MResponseManager.obtainRetrofit(API.class).shop_goodst_request(request);
    }

    @Override
    public Observable<BrandGoodsEntity> brand_goods(String request) {
        return MResponseManager.obtainRetrofit(API.class).brand_goods_request(request);
    }

    @Override
    public void destroy() {

    }
}
